package com.ruoyi.system.service.impl;

import com.ruoyi.system.service.ProjectMsgTemplateAdminService;
import com.ruoyi.system.service.ProjectMsgTemplateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectMsgTemplateAdminServiceImpl implements ProjectMsgTemplateAdminService {

    @Resource
    private ProjectMsgTemplateService bindingService;

    @Override
    public void bind(Long projectId, Long templateId, Integer type, String operator) {
        bindingService.bind(projectId, templateId, type, operator);
    }

    @Override
    public void disable(Long projectId, Integer type, String operator) {
        bindingService.disable(projectId, type, operator);
    }

    @Override
    public Long getActiveTemplateId(Long projectId, Integer type) {
        return bindingService.getActiveTemplateId(projectId, type);
    }

    @Override
    public List<Long> getProjectIdsByTemplateId(Long templateId) {
        return bindingService.getProjectIdsByTemplateId(templateId);
    }
}


